//
//  BaseLayer.h
//  xGame
//
//  Created by Max on 11-8-13.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import "cocos2d.h"
//#define RESET_DEFAULTS

#import "AdWhirlView.h"
#import "AdWhirlDelegateProtocol.h"
@class AdWhirlView;

#define kFPS 60

#define kNumClouds			12

#define kMinPlatformStep	50
#define kMaxPlatformStep	300
#define kNumPlatforms		10
#define kPlatformTopPadding 10

#define kMinBonusStep		30
#define kMaxBonusStep		50

enum {
	kSpriteManager = 0,
	kBird,
	kScoreLabel,
	kCloudsStartTag = 100,
	kPlatformsStartTag = 200,
	kBonusStartTag = 300
};

enum {
	kBonus5 = 0,
	kBonus10,
	kBonus50,
	kBonus100,
	kNumBonuses
};

extern int g_lastScore;

@interface BaseLayer : CCLayer<AdWhirlDelegate>
{
	int                 currentCloudTag;
    
    AdWhirlView         *awView;
    UIViewController    *viewController;
}

@property (nonatomic,retain) AdWhirlView *awView;

- (void)resetClouds;
- (void)resetCloud;
- (void)step:(ccTime)dt;
@end
